import { RouteRecordRaw } from 'vue-router';

/**
 * @路由meta对象参数说明
 * meta: {
 *      title:          菜单栏及 tagsView 栏、菜单搜索名称（国际化）
 *      isLink：        是否超链接菜单，开启外链条件，`1、isLink: 链接地址不为空`
 *      isHide：        是否隐藏此路由
 *      isKeepAlive：   是否缓存组件状态
 *      isAffix：       是否固定在 tagsView 栏上
 *      isIframe：      是否内嵌窗口，开启条件，`1、isIframe:true 2、isLink：链接地址不为空`
 * 		isNest:		    是否三级路由
 * 		isHideNest:		是否隐藏三级路由
 *      roles：         当前路由权限标识，取角色管理。控制路由显示、隐藏。超级管理员：admin 普通角色：common
 *      icon：          菜单、tagsView 图标，阿里：加 `iconfont xxx`，fontawesome：加 `fa xxx`
 * 		activePath:		激活的父菜单
 * 		multipleNest:   多级路由, 四级/五级等
 * 		isTitle:        是否仅是标题， 用于nest-tree的时候展示标题
 * }
 */

/**
 * 定义动态路由
 * 前端添加路由，请在顶级节点的 `children 数组` 里添加
 * @description 未开启 isRequestRoutes 为 true 时使用（前端控制路由），开启时第一个顶级 children 的路由将被替换成接口请求回来的路由数据
 * @description 各字段请查看 `/@/views/system/menu/component/addMenu.vue 下的 ruleForm`
 * @returns 返回路由菜单数据
 */
export const dynamicRoutes: Array<RouteRecordRaw> = [
	{
		path: '/',
		name: '/',
		component: () => import('/@/layout/index.vue'),
		redirect: '/home',
		meta: {
			isKeepAlive: true,
		},
		children: [
			{
				path: '/home',
				name: 'home',
				component: () => import('/@/views/home/index.vue'),
				meta: {
					title: 'message.router.home',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: true,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: 'iconfont icon-shouye',
					isNest: true
				},
				redirect: '/calendar',
				children: [{
					path: '/calendar',
					name: 'CalendarHome',
					component: () => import('/@/views/home/calendar.vue'),
					meta: {
						title: 'message.router.home',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/home'
					}
				}]
			},
			{
				path: '/project',
				name: 'PROJECT',
				component: () => import('/@/views/project/index.vue'),
				meta: {
					title: '项目',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin'],
					icon: '/src/assets/project.svg',
					isNest: true
				}
			},
			{
				path: '/personal',
				name: 'personal',
				component: () => import('/@/views/personal/index.vue'),
				meta: {
					title: '设置',
					isLink: '',
					isHide: true,
					isKeepAlive: true,
					isAffix: true,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '',
				}
			},
			{
				path: '/card',
				name: 'card',
				component: () => import('/@/views/personal/card.vue'),
				meta: {
					title: '名片',
					isLink: '',
					isHide: true,
					isKeepAlive: true,
					isAffix: true,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: ''
				}
			},
			{
				path: '/crm',
				name: 'CRM',
				component: () => import('/@/views/crm/index.vue'),
				meta: {
					title: 'CRM',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/customer.svg',
					isNest: true
				},
				redirect: '/crm/list',
				children: [{
					path: '/crm/list',
					name: 'CrmList',
					component: () => import('/@/views/crm/list/index.vue'),
					meta: {
						title: '客户',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/crm'
					}
				}
				,{
					path: '/crm/contact',
					name: 'Quote',
					component: () => import('/@/views/crm/quote/index.vue'),
					meta: {
						title: '报价单',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/crm'
					}
				}
				,{
					path: '/crm/buyContact',
					name: 'buyContact',
					component: () => import('/@/views/crm/buyContact/index.vue'),
					meta: {
						title: '求购联络表',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/buyContact'
					}
				}
				]
			},
			{
				path: '/oa',
				name: 'OA',
				component: () => import('/@/views/oa/index.vue'),
				meta: {
					title: '人事管理',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/person.svg',
					isNest: true
				},
				redirect: '/oa/staff',
				children: [{
					path: '/oa/staff',
					name: 'staff',
					component: () => import('/@/views/oa/staff/index.vue'),
					meta: {
						title: '员工管理',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/oa'
					}
				}, {
					path: '/oa/candidate',
					name: 'candidate',
					component: () => import('/@/views/oa/recruit/candidate/index.vue'),
					meta: {
						title: '候选人管理',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/oa'
					}
				}, {
					path: '/oa/recruitPost',
					name: 'recruitPost',
					component: () => import('/@/views/oa/recruit/post/index.vue'),
					meta: {
						title: '招聘职位',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/oa'
					}
				}, {
					path: '/oa/office',
					name: 'oaOffice',
					component: () => import('/@/views/oa/settings/office/index.vue'),
					meta: {
						title: '职能设置',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/oa'
					}
				}]
			},
			{
				path: '/shop',
				name: 'Shop',
				component: () => import('/@/views/shop/index.vue'),
				meta: {
					title: '商品管理',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/shop.svg',
					isNest: true
				},
				redirect: '/shop/list',
				children: [{
					path: '/shop/list/parent',
					redirect: '/shop/list',
					meta: {
						title: '产品',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: false,
						isIframe: false,
						roles: ['admin', 'common'],
						icon: '/src/assets/shop.svg',
						isNest: true,
						isTitle: true
					},
					children: [{
						path: '/shop/list',
						name: 'ShopList',
						component: () => import('/@/views/shop/list/index.vue'),
						meta: {
							title: '产品列表',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}, {
						path: '/shop/classify',
						name: 'ClassifyList',
						component: () => import('/@/views/shop/classify/index.vue'),
						meta: {
							title: '产品分类',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}, {
						path: '/shop/goods-add',
						name: 'GoodsAdd',
						component: () => import('/@/views/shop/goods/add.vue'),
						meta: {
							title: '新增商品',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}, {
						path: '/shop/goods-edit',
						name: 'GoodsEdit',
						component: () => import('/@/views/shop/goods/edit.vue'),
						meta: {
							title: '编辑商品',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: true,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}, {
						path: '/shop/spec',
						name: 'Spec',
						component: () => import('/@/views/shop/spec/index.vue'),
						meta: {
							title: '产品规格',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}, {
						path: '/shop/card',
						name: 'Card',
						component: () => import('/@/views/shop/card/index.vue'),
						meta: {
							title: '卡项',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}]
				},
				{
					path: '/shop/vipCard/parent',
					redirect: '/shop/vipCard',
					meta: {
						title: '公司会员',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: false,
						isIframe: false,
						roles: ['admin', 'common'],
						icon: '/src/assets/shop.svg',
						isNest: true,
						isTitle: true
					},
					children: [{
						path: '/shop/vipCard',
						name: 'VipCard',
						component: () => import('/@/views/shop/vipcard/index.vue'),
						meta: {
							title: '会员卡',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}, {
						path: '/shop/memberLevel',
						name: 'MemberLevel',
						component: () => import('/@/views/shop/memberLevel/index.vue'),
						meta: {
							title: '会员等级',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}, {
						path: '/shop/VipCardRight',
						name: 'VipCardRight',
						component: () => import('/@/views/shop/vipcard/right.vue'),
						meta: {
							title: '会员权益',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}]
				}, {
					path: '/shop/coupon/parent',
					redirect: '/shop/coupon',
					meta: {
						title: '公司营销',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: false,
						isIframe: false,
						roles: ['admin', 'common'],
						icon: '/src/assets/shop.svg',
						isNest: true,
						isTitle: true
					},
					children: [{
						path: '/shop/coupon',
						name: 'Coupon',
						component: () => import('/@/views/shop/coupon/index.vue'),
						meta: {
							title: '优惠券',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}, {
						path: '/shop/article',
						name: 'Article',
						component: () => import('/@/views/shop/website/index.vue'),
						meta: {
							title: '发布内容 (收录)',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}]
				}, {
					path: 'shop/website/parent',
					redirect: '/shop/website',
					meta: {
						title: '官网',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: false,
						isIframe: false,
						roles: ['admin', 'common'],
						icon: '/src/assets/shop.svg',
						isNest: true,
						isTitle: true
					},
					children: [
						/* {
						path: '/shop/website',
						name: 'Website',
						component: () => import('/@//views/shop/website/AuthorityManage.vue'),
						meta: {
							title: '官网内容 (收录)',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/website'
						}
					}, */
						{
							path: '/shop/domainName',
							name: 'DomainName',
							component: () => import('/@/views/shop/domainName/index.vue'),
							meta: {
								title: '官网域名',
								isLink: '',
								isHide: true,
								isKeepAlive: true,
								isAffix: true,
								isIframe: false,
								isHideNest: false,
								roles: ['admin', 'common'],
								icon: '',
								activePath: '/shop'
							}
					}]
				}, {
					path: '/shop/wechatApp/parent',
					redirect: '/shop/wechatApp',
					meta: {
						title: '私域小程序',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: false,
						isIframe: false,
						roles: ['admin', 'common'],
						icon: '/src/assets/shop.svg',
						isNest: true,
						isTitle: true
					},
					children: [{
						path: '/shop/wechatApp',
						name: 'WechatApp',
						component: () => import('/@/views/shop/wechatApp/index.vue'),
						meta: {
							title: '店铺模板/发布',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}, {
						path: '/shop/homeAdv',
						name: 'HomeAdv',
						component: () => import('/@/views/shop/homeAdv/index.vue'),
						meta: {
							title: '首页轮播图',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					},
					{
						path: '/shop/notice',
						name: 'Notice',
						component: () => import('/@/views/shop/notice/index.vue'),
						meta: {
							title: '商城公告',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}]
				}, {
					path: 'shop/wechatApp/parent',
					redirect: '/shop/wechatApp',
					meta: {
						title: '设置',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: false,
						isIframe: false,
						roles: ['admin', 'common'],
						icon: '/src/assets/shop.svg',
						isNest: true,
						isTitle: true
					},
					children: [{
						path: '/shop/logistic',
						name: 'Logistic',
						component: () => import('/@/views/shop/logistic/index.vue'),
						meta: {
							title: '配送设置',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					},
					{
						path: '/shop/paysetting',
						name: 'Paysetting',
						component: () => import('/@/views/shop/paysetting/index.vue'),
						meta: {
							title: '支付设置',
							isLink: '',
							isHide: true,
							isKeepAlive: false,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					},
					{
						path: '/shop/chatService',
						name: 'ChatService',
						component: () => import('/@/views/shop/chatService/index.vue'),
						meta: {
							title: '客服人员',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/chatService'
						}
					},
					{
						path: '/shop/appsetting',
						name: 'Appsetting',
						component: () => import('/@/views/shop/appsetting/index.vue'),
						meta: {
							title: '应用设置',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/shop'
						}
					}]
				},
				{
					path: '/shop/spoor',
					name: 'Spoor',
					component: () => import('/@/views/shop/spoor/index.vue'),
					meta: {
						title: '商品浏览记录',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/spoor'
					}
				},
				{
					path: '/shop/comment',
					name: 'Comment',
					component: () => import('/@/views/shop/comment/index.vue'),
					meta: {
						title: '商品评论记录',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/comment'
					}
				},
				{
					path: '/shop/addHostBinding',
					name: 'AddHostBinding',
					component: () => import('/@/views/shop/domainName/components/CreateHostBinding.vue'),
					meta: {
						title: '官网域名绑定',
						isLink: '',
						isHide: true,
						isKeepAlive: false,
						isAffix: true,
						isIframe: false,
						isHideNest: true,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/shop'
					}
				},
					// {
					// 	path: '/shop/pages',
					// 	name: 'Pages',
					// 	component: () => import('/@/views/shop/pages/AuthorityManage.vue'),
					// 	meta: {
					// 		title: '小程序路径',
					// 		isLink: '',
					// 		isHide: true,
					// 		isKeepAlive: true,
					// 		isAffix: true,
					// 		isIframe: false,
					// 		isHideNest: false,
					// 		roles: ['admin', 'common'],
					// 		icon: '',
					// 		activePath: '/pages'
					// 	}
					// },
					// {
					// 	path: '/shop/wechatTemp',
					// 	name: 'WechatTemp',
					// 	component: () => import('/@/views/shop/wechatTemp/AuthorityManage.vue'),
					// 	meta: {
					// 		title: '应用模板管理',
					// 		isLink: '',
					// 		isHide: true,
					// 		isKeepAlive: true,
					// 		isAffix: true,
					// 		isIframe: false,
					// 		isHideNest: false,
					// 		roles: ['admin', 'common'],
					// 		icon: '',
					// 		activePath: '/shop'
					// 	}
					// },
					// {
					// 	path: '/shop/promotion',
					// 	name: 'Promotion',
					// 	component: () => import('/@/views/shop/promotion/AuthorityManage.vue'),
					// 	meta: {
					// 		title: '推广',
					// 		isLink: '',
					// 		isHide: true,
					// 		isKeepAlive: true,
					// 		isAffix: true,
					// 		isIframe: false,
					// 		isHideNest: false,
					// 		roles: ['admin', 'common'],
					// 		icon: '',
					// 		activePath: '/shop'
					// 	}
					// },
					// {
					// 	path: '/shop/setting',
					// 	name: 'Setting',
					// 	component: () => import('/@/views/shop/setting/AuthorityManage.vue'),
					// 	meta: {
					// 		title: '分销',
					// 		isLink: '',
					// 		isHide: true,
					// 		isKeepAlive: true,
					// 		isAffix: true,
					// 		isIframe: false,
					// 		isHideNest: false,
					// 		roles: ['admin', 'common'],
					// 		icon: '',
					// 		activePath: '/shop'
					// 	}
					// },
					// {
					// 	path: '/shop/approve',
					// 	name: 'Approve',
					// 	component: () => import('/@/views/shop/approve/AuthorityManage.vue'),
					// 	meta: {
					// 		title: '审批',
					// 		isLink: '',
					// 		isHide: true,
					// 		isKeepAlive: true,
					// 		isAffix: true,
					// 		isIframe: false,
					// 		isHideNest: false,
					// 		roles: ['admin', 'common'],
					// 		icon: '',
					// 		activePath: '/shop'
					// 	}
					// },
					// {
					// 	path: '/shop/homeCardInfo',
					// 	name: 'HomeCardInfo',
					// 	component: () => import('/@/views/shop/homeCardInfo/AuthorityManage.vue'),
					// 	meta: {
					// 		title: '官网内容',
					// 		isLink: '',
					// 		isHide: true,
					// 		isKeepAlive: true,
					// 		isAffix: true,
					// 		isIframe: false,
					// 		isHideNest: false,
					// 		roles: ['admin', 'common'],
					// 		icon: '',
					// 		activePath: '/shop'
					// 	}
					// },
				]
			},
			{
				path: '/order',
				name: 'Order',
				component: () => import('/@/views/order/index.vue'),
				meta: {
					title: '订单管理',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/order.svg',
					isNest: true
				},
				redirect: '/order/list',
				children: [
				{
					path: '/order/quotation',
					name: 'orderQuotation',
					component: () => import('/@/views/order/quotation/index.vue'),
					meta: {
						title: '报价单',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/order'
					}
				},
				{
					path: '/order/approveOrSign',
					name: 'approveOrSign',
					component: () => import('/@/views/order/approveOrSign/index.vue'),
					meta: {
						title: '审批和签署单',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/order'
					}
				},
				{
					path: '/order/list',
					name: 'OrderList',
					component: () => import('/@/views/order/list/index.vue'),
					meta: {
						title: '生效订单',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/order'
					}
				},
				{
					path: '/order/noPayEcommerce',
					name: 'noPayEcommerce',
					component: () => import('/@/views/order/noPayEcommerce/index.vue'),
					meta: {
						title: '待付款电商单',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/order'
					}
				},
				{
					path: '/order/dispatchList',
					name: 'DispatchList',
					component: () => import('/@/views/order/dispatchList/index.vue'),
					meta: {
						title: '发货单',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/order'
					}
				},
				{
					path: '/order/afterSaleList',
					name: 'AfterSaleList',
					component: () => import('/@/views/order/afterSaleList/index.vue'),
					meta: {
						title: '售后列表',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/order'
					}
				},]
			},
			{
				path: '/marketing',
				name: 'Marketing',
				component: () => import('/@/views/marketing/index.vue'),
				meta: {
					title: '市场管理',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/marketing.svg',
					isNest: true
				},
				redirect: '/marketing/active',
				children: [{
					path: '/marketing/active',
					name: 'MarketingActive',
					component: () => import('/@/views/marketing/active/index.vue'),
					meta: {
						title: '市场活动',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/marketing'
					}
				},
				// {
				// 	path: '/marketing/provider',
				// 	name: 'MarketingProvider',
				// 	component: () => import('/@/views/marketing/provider/AuthorityManage.vue'),
				// 	meta: {
				// 		title: '服务商管理',
				// 		isLink: '',
				// 		isHide: true,
				// 		isKeepAlive: true,
				// 		isAffix: true,
				// 		isIframe: false,
				// 		isHideNest: false,
				// 		roles: ['admin', 'common'],
				// 		icon: '',
				// 		activePath: '/marketing'
				// 	}
				// },{
				// 	path: '/marketing/sales',
				// 	name: 'MarketingSales',
				// 	component: () => import('/@/views/marketing/sales/AuthorityManage.vue'),
				// 	meta: {
				// 		title: '营销工具箱',
				// 		isLink: '',
				// 		isHide: true,
				// 		isKeepAlive: true,
				// 		isAffix: true,
				// 		isIframe: false,
				// 		isHideNest: false,
				// 		roles: ['admin', 'common'],
				// 		icon: '',
				// 		activePath: '/marketing'
				// 	}
				// },
				// {
				// 	path: '/marketing/resources',
				// 	name: 'MarketingResources',
				// 	component: () => import('/@/views/marketing/resources/AuthorityManage.vue'),
				// 	meta: {
				// 		title: '找资源',
				// 		isLink: '',
				// 		isHide: true,
				// 		isKeepAlive: true,
				// 		isAffix: true,
				// 		isIframe: false,
				// 		isHideNest: false,
				// 		roles: ['admin', 'common'],
				// 		icon: '',
				// 		activePath: '/marketing'
				// 	}
				// },
				{
					path: '/marketing/statistics',
					name: 'MarketingStatistics',
					component: () => import('/@/views/marketing/statistics/index.vue'),
					meta: {
						title: '统计分析',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/marketing'
					}
				},
				{
					path: '/marketing/promotion',
					name: 'MarketingPromotion',
					component: () => import('/@/views/marketing/promotion/index.vue'),
					meta: {
						title: '促销品管理',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/marketing'
					}
				}
				]
			},
			{
				path: '/procure',
				name: 'Procure',
				component: () => import('/@/views/procure/index.vue'),
				meta: {
					title: '采购',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: true,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/procure.svg',
					isNest: true
				},
				redirect: '/procure/supplier',
				children: [{
					path: '/procure/supplier',
					name: 'supplier',
					component: () => import('/@/views/procure/supplier/index.vue'),
					meta: {
						title: '供应商',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/supplier'
					}
				},
				{
					path: '/procure/quotation',
					name: 'quotation',
					component: () => import('/@/views/procure/quotation/index.vue'),
					meta: {
						title: '报价单',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/quotation'
					}
				},
				// {
				// 	path: '/procure/purchase',
				// 	name: 'purchase',
				// 	component: () => import('/@/views/procure/purchase/index.vue'),
				// 	meta: {
				// 		title: '采购单',
				// 		isLink: '',
				// 		isHide: true,
				// 		isKeepAlive: true,
				// 		isAffix: true,
				// 		isIframe: false,
				// 		isHideNest: false,
				// 		roles: ['admin', 'common'],
				// 		icon: '',
				// 		activePath: '/purchase'
				// 	}
				// }
                    {
                        path: '/procure/approveSign',
                        name: 'ApproveSign',
                        component: () => import('/@/views/procure/purchase/ApproveSignOrder.vue'),
                        meta: {
                            title: '审批和签署单',
                            isLink: '',
                            isHide: true,
                            isKeepAlive: true,
                            isAffix: true,
                            isIframe: false,
                            isHideNest: false,
                            roles: ['admin', 'common'],
                            icon: '',
                            activePath: '/approveSign'
                        }
                    },
                    {
                        path: '/procure/validOrder',
                        name: 'ValidOrder',
                        component: () => import('/@/views/procure/purchase/ValidOrder.vue'),
                        meta: {
                            title: '生效采购单',
                            isLink: '',
                            isHide: true,
                            isKeepAlive: true,
                            isAffix: true,
                            isIframe: false,
                            isHideNest: false,
                            roles: ['admin', 'common'],
                            icon: '',
                            activePath: '/validOrder'
                        }
                    },
                    {
                        path: '/procure/waitPaidOrder',
                        name: 'WaitPaidOrder',
                        component: () => import('/@/views/procure/purchase/WaitPaidOrder.vue'),
                        meta: {
                            title: '待付款电商单',
                            isLink: '',
                            isHide: true,
                            isKeepAlive: true,
                            isAffix: true,
                            isIframe: false,
                            isHideNest: false,
                            roles: ['admin', 'common'],
                            icon: '',
                            activePath: '/waitPaidOrder'
                        }
                    },
					{
						path: '/procure/supplierContactLetter',
						name: 'SupplierContactLetter',
						component: () => import('/@/views/procure/contact/SupplierContactLetter.vue'),
						meta: {
							title: '供应联系单',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/supplierContactLetter'
						}
					},
					{
						path: '/procure/afterSale',
						name: 'AfterSale',
						component: () => import('/@/views/procure/afterSale/index.vue'),
						meta: {
							title: '售后列表',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/afterSale'
						}

					},
				{
					path: '/procure/supplyContact',
					name: 'supplyContact',
					component: () => import('/@/views/procure/supplyContact/index.vue'),
					meta: {
						title: '供应联络表',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/supplyContact'
					}
				}
				]
			},
			{
				path: '/chat',
				name: 'chat',
				component: () => import('/@/views/chat/index.vue'),
				meta: {
					title: '聊天',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: true,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/chat.svg',
					isNest: true
				},
				redirect: '/chat/message',
				children: [{
					path: '/chat/message',
					name: 'MessageIndex',
					component: () => import('/@/views/chat/message/index.vue'),
					redirect: '/chat/message/friends',
					meta: {
						title: '我的消息',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/chat',
						isNest: true,
						isTitle: true
					},
					children: [{
						path: '/chat/message/friends',
						name: 'ChatMessage',
						component: () => import('/@/views/chat/message/friends/index.vue'),
						meta: {
							title: '好友消息',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							multipleNest: true,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/chat',
						}
					},
					{
						path: '/chat/message/shop',
						name: 'MessageShop',
						component: () => import('/@/views/chat/message/shop/index.vue'),
						meta: {
							title: '商城消息',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							multipleNest: true,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/chat',
						}
					},{
						path: '/chat/message/vip',
						name: 'MessageVip',
						component: () => import('/@/views/chat/message/shop/index.vue'),
						meta: {
							title: '付费客服',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							multipleNest: true,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/chat',
						}
					}
				]
				}, {
					path: '/chat/phonebook',
					name: 'phoneBook',
					component: () => import('/@/views/chat/phonebook/index.vue'),
					meta: {
						title: '通讯录',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/chat',
						isNest: true,
						isTitle: true
					},
					redirect: '/chat/phonebook/apply',
					children: [{
						path: '/chat/phonebook/apply',
						name: 'PhoneBookApply',
						component: () => import('/@/views/chat/phonebook/apply/index.vue'),
						meta: {
							title: '新的联系人',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							multipleNest: true,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/chat',
						}
					}, {
						path: '/chat/phonebook/friends',
						name: 'PhoneBookFriends',
						component: () => import('/@/views/chat/phonebook/friends/index.vue'),
						meta: {
							title: '我的好友',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							multipleNest: true,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/chat',
						}
					}, {
						path: '/chat/phonebook/groups',
						name: 'PhoneBookGroups',
						component: () => import('/@/views/chat/phonebook/groups/index.vue'),
						meta: {
							title: '我的群组',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							multipleNest: true,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/chat',
						}
					}]
				},{
					path: '/chat/setting',
					name: 'ChatSetting',
					component: () => import('/@/views/chat/setting/index.vue'),
					meta: {
						title: '设置',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/chatSetting'
					}
				},{
					path: '/chat/customerService',
					name: 'customerService',
					meta: {
						title: '客服',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/chat',
						isNest: true,
						isTitle: true
					},
					children: [
						{
							path: '/chat/customerServiceList',
							name: 'ChatCustomerServiceList',
							component: () => import('/@/views/chat/customerService/CustomerServiceList.vue'),
							meta: {
								title: '客服列表',
								isLink: '',
								isHide: true,
								isKeepAlive: true,
								isAffix: true,
								isIframe: false,
								isHideNest: false,
								roles: ['admin', 'common'],
								icon: '',
								activePath: '/chatCustomerServiceList',
							}
						},
						{
							path: '/chat/customerServiceEvaluation',
							name: 'ChatCustomerServiceEvaluation',
							component: () => import('/@/views/chat/customerService/CustomerServiceEvaluation.vue'),
							meta: {
								title: '客服评价表',
								isLink: '',
								isHide: true,
								isKeepAlive: true,
								isAffix: true,
								isIframe: false,
								isHideNest: false,
								roles: ['admin', 'common'],
								icon: '',
								activePath: '/chatCustomerServiceEvaluation',
							}
						},
						{
							path: '/chat/customerServiceLevel',
							name: 'customerServiceLevel',
							component: () => import('/@/views/chat/customerService/customerServiceLevel.vue'),
							meta: {
								title: '客服等级',
								isLink: '',
								isHide: true,
								isKeepAlive: true,
								isAffix: true,
								isIframe: false,
								isHideNest: false,
								roles: ['admin', 'common'],
								icon: '',
								activePath: '/customerServiceLevel',
							}
						},
					]
				}
				]
			},
			{
				path: '/project/detail',
				name: 'ProjectDetail',
				component: () => import('/@/views/project/components/detail.vue'),
				meta: {
					title: '项目详情',
					isLink: '',
					isHide: true,
					isKeepAlive: true,
					isAffix: true,
					isIframe: false,
					isHideNest: false,
					roles: ['admin', 'common'],
					icon: '',
					activePath: '/project'
				}
			},
			{
				path: '/space',
				name: 'Space',
				component: () => import('/@/views/space/index.vue'),
				meta: {
					title: '空间管理',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/space.svg',
					isNest: true
				},
				redirect: '/space/documents',
				children: [
					{
					path: '/space/documents',
					name: 'SpaceDocuments',
					component: () => import('/@/views/space/documents/index.vue'),
					meta: {
						title: '文档管理',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/space'
						}
					},
					{
						path: '/space/manage',
						name: 'SpaceManage',
						component: () => import('/@/views/space/manage/index.vue'),
						meta: {
							title: '空间管理',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/manage'
						}
					},
					{
						path: '/space/collaborative',
						name: 'SpaceCollaborative',
						component: () => import('/@/views/space/collaborative/index.vue'),
						meta: {
							title: '协同文档',
							isLink: '',
							isHide: true,
							isKeepAlive: false,
							isAffix: true,
							isIframe: false,
							isHideNest: true,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/collaborative'
						}
					},
					{
						path: '/space/demo',
						name: 'SpaceDemo',
						component: () => import('/@/views/space/demo/index.vue'),
						meta: {
							title: 'GPT演示',
							isLink: '',
							isHide: true,
							isKeepAlive: false,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/demo'
						}
					}
				]
			},
			{
				path: '/seven',
				name: 'Seven',
				component: () => import('/@/views/seven/index.vue'),
				meta: {
					title: '小七拓客',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/seven.svg',
					isNest: true
				},
				redirect: '/seven/list',
				children: [{
					path: '/seven/list',
					name: 'SevenList',
					component: () => import('/@/views/seven/list/index.vue'),
					meta: {
						title: '小七客列表',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/seven'
					}
				}]
			},
			// {
			// 	path: '/commission',
			// 	name: 'Commission',
			// 	component: () => import('/@/views/Commission/AuthorityManage.vue'),
			// 	meta: {
			// 		title: '提成',
			// 		isLink: '',
			// 		isHide: false,
			// 		isKeepAlive: true,
			// 		isAffix: false,
			// 		isIframe: false,
			// 		roles: ['admin', 'common'],
			// 		icon: '/src/assets/commission.svg',
			// 		isNest: true
			// 	},
			// 	redirect: '/commission/list',
			// 	children: [{
			// 		path: '/commission/list',
			// 		name: 'CommissionList',
			// 		component: () => import('/@/views/Commission/list/AuthorityManage.vue'),
			// 		meta: {
			// 			title: '提成列表',
			// 			isLink: '',
			// 			isHide: true,
			// 			isKeepAlive: true,
			// 			isAffix: true,
			// 			isIframe: false,
			// 			isHideNest: false,
			// 			roles: ['admin', 'common'],
			// 			icon: '',
			// 			activePath: '/Commission'
			// 		}
			// 	}]
			// },
			{
				path: '/optimum',
				name: 'Optimum',
				component: () => import('/@/views/optimum/index.vue'),
				meta: {
					title: '最佳商品',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/optimum.svg',
					isNest: true
				},
				redirect: '/optimum/list',
				children: [{
					path: '/optimum/list',
					name: 'OptimumList',
					component: () => import('/@/views/optimum/list/index.vue'),
					meta: {
						title: '最佳商品列表',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/optimum'
					}
				}]
			},
			{
				path: '/findResource',
				name: 'FindResource',
				component: () => import('/@/views/shop/findResource/index.vue'),
				meta: {
					title: '找资源',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/find_resource.svg',
					isNest: true
				},
				redirect: '/findResource/list',
				children: [{
					path: '/findResource/list',
					name: 'FindResourceList',
					component: () => import('/@/views/shop/findResource/list/index.vue'),
					meta: {
						title: '找资源列表',
						isLink: '',
						isHide: true,
						isKeepAlive: true,
						isAffix: true,
						isIframe: false,
						isHideNest: false,
						roles: ['admin', 'common'],
						icon: '',
						activePath: '/findResource'
					}
				}]
			},
			{
				path: '/share/wechatOrder/:id',
				name: 'Share',
				component: () => import('/@/views/share/wechatOrder/index.vue'),
				meta: {
					title: '订单详情',
					isLink: '',
					isHide: true,
					isKeepAlive: true,
					isAffix: true,
					isIframe: false,
					roles: ['admin', 'common'],
					isHideNest: true,
				},
			},
			{
				path: '/findResource/articlerDetail',
				name: 'ArticlerDetail',
				component: () => import('/@/views/shop/findResource/articlerDetail/index.vue'),
				meta: {
					title: '文章详情',
					isLink: '',
					isHide: true,
					isKeepAlive: true,
					isAffix: true,
					isIframe: false,
					roles: ['admin', 'common'],
					isHideNest: true,
				},
			},
			{
				path: '/money',
				name: 'Money',
				component: () => import('/@/views/money/index.vue'),
				meta: {
					title: '资金',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/money.svg',
					isNest: true
				},
				redirect: '/money/fund',
				children: [
					{
					path: '/money/fund',
					name: 'MoneyFund',
					component: () => import('/@/views/money/fund/index.vue'),
						meta: {
							title: '资金流水',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/fund'
						}
					},
					{
						path: '/money/receivable',
						name: 'MoneyReceivable',
						component: () => import('/@/views/money/receivable/index.vue'),
						meta: {
							title: '应收账款',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/receivable'
						}
					},
					{
						path: '/money/payment',
						name: 'MoneyPayment',
						component: () => import('/@/views/money/payment/index.vue'),
						meta: {
							title: '应付账款',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/payment'
						}
					},
					{
						path: '/money/accountManage',
						name: 'MoneyAccountManage',
						component: () => import('/@/views/money/accountManage/index.vue'),
						meta: {
							title: '账户管理',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/accountManage'
						}
					},
					{
						path: '/money/invoicing',
						name: 'MoneyInvoicing',
						component: () => import('/@/views/money/invoicing/index.vue'),
						meta: {
							title: '销售开票',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/invoicing'
						}
					},
					{
						path: '/money/receiveInvoice',
						name: 'MoneyReceiveInvoice',
						component: () => import('/@/views/money/receiveInvoice/index.vue'),
						meta: {
							title: '收票记录',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/receiveInvoice'
						}
					},
					{
						path: '/money/outAccount',
						name: 'MoneyOutAccount',
						component: () => import('/@/views/money/outAccount/index.vue'),
						meta: {
							title: '出账记录',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/outAccount'
						}
					},
					{
						path: '/money/typeManage',
						name: 'MoneyTypeManage',
						component: () => import('/@/views/money/typeManage/index.vue'),
						meta: {
							title: '收支类别',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/typeManage'
						}
					}
				]
			},
			{
				path: '/enterpriseInfo',
				name: 'EnterpriseInfo',
				component: () => import('/@/views/login/inint/index.vue'),
				meta: {
					title: '企业名称',
					isLink: '',
					isHide: true,
					isKeepAlive: true,
					isAffix: true,
					isIframe: false,
					roles: ['admin', 'common'],
					isHideNest: true,
				},
			},
			{
				path: '/course',
				name: 'Course',
				component: () => import('/@/views/course/index.vue'),
				meta: {
					title: '课程',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/course.svg',
					isNest: true
				},
				redirect: '/course/list',
				children: [
					{
						path: '/course/list',
						name: 'CourseList',
						component: () => import('/@/views/course/list/index.vue'),
						meta: {
							title: '课程列表',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/course'
						}
					},
					{
						path: '/course/play',
						name: 'CoursePlay',
						component: () => import('/@/views/course/play/index.vue'),
						meta: {
							title: '课程视频播放',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: true,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/play'
						}
					},
				]
			},

			{
				path: '/setting',
				name: 'Setting',
				component: () => import('/@/views/setting/index.vue'),
				meta: {
					title: '设置',
					isLink: '',
					isHide: true,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/shop.svg',
					isNest: true
				},
				redirect: '/personal/list',
				children: [
					{
						path: '/personal/list',
						name: 'PersonalList',
						component: () => import('/@/views/personal/index.vue'),
						meta: {
							title: '个人中心',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/personal'
						}
					},
					{
						path: '/dict/list',
						name: 'DictList',
						component: () => import('/@/views/setting/dict/index.vue'),
						meta: {
							title: '字典设置',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/dict'
						}
					},
					{
						path: '/matterSetup/list',
						name: 'matterSetupList',
						component: () => import('/@/views/setting/matter/index.vue'),
						meta: {
							title: '事务设置',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/matterSetup'
						}
					},
					{
						path: '/workflow',
						name: 'WorkFlow',
						component: () => import('/@/views/setting/workflow/index.vue'),
						meta: {
							title: '审批工作流',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: true,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/personal'
						}
					},
					{
						path: '/invite',
						name: 'invite',
						component: () => import('/@/views/login/invite.vue'),
						meta: {
							title: '邀请加入',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/invite'
						}
					},
					{
						path: '/userMessage',
						name: 'userMessage',
						component: () => import('/@/views/setting/messages/index.vue'),
						meta: {
							title: '站内信',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/userMessage'
						}
					}
				]
			},
			{
				path: '/tools',
				name: 'tools',
				component: () => import('/@/views/tools/index.vue'),
				meta: {
					title: '工具',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '/src/assets/tool.svg',
					isNest: true
				},
				redirect: '/tools/paper',
				children: [
					{
						path: '/tools/paper',
						name: 'Paper',
						component: () => import('/@/views/tools/paper/index.vue'),
						meta: {
							title: '提需求/需求表',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/tools'
						}
					},
					{
						path: '/tools/callback',
						name: 'callback',
						component: () => import('/@/views/tools/callback/index.vue'),
						meta: {
							title: '需求反馈',
							isLink: '',
							isHide: true,
							isKeepAlive: true,
							isAffix: true,
							isIframe: false,
							isHideNest: false,
							roles: ['admin', 'common'],
							icon: '',
							activePath: '/tools'
						}
					},
				]
			},
		],
	},
];

/**
 * 定义404、401界面
 * @link 参考：https://next.router.vuejs.org/zh/guide/essentials/history-mode.html#netlify
 */
export const notFoundAndNoPower = [
	{
		path: '/:path(.*)*',
		name: 'notFound',
		component: () => import('/@/views/error/404.vue'),
		meta: {
			title: 'message.staticRoutes.notFound',
			isHide: true,
		},
	},
	{
		path: '/401',
		name: 'noPower',
		component: () => import('/@/views/error/401.vue'),
		meta: {
			title: 'message.staticRoutes.noPower',
			isHide: true,
		},
	},
];

/**
 * 定义静态路由（默认路由）
 * 此路由不要动，前端添加路由的话，请在 `dynamicRoutes 数组` 中添加
 * @description 前端控制直接改 dynamicRoutes 中的路由，后端控制不需要修改，请求接口路由数据时，会覆盖 dynamicRoutes 第一个顶级 children 的内容（全屏，不包含 layout 中的路由出口）
 * @returns 返回路由菜单数据
 */
export const staticRoutes: Array<RouteRecordRaw> = [
	{
		path: '/login',
		name: 'login',
		component: () => import('/@/views/login/index.vue'),
		meta: {
			title: '登录',
		},
	},
	{
        path: '/r',
        name: 'register',
        component: () => import('/@/views/login/register.vue'),
        meta: {
            title: '注册',
        },
	},{
		path: '/customer/chat', // 这个页面是商城客服
		name: 'MessageCustomer',
		component: () => import('/@/views/chat/message/customer/index.vue'),
		meta: {
			title: '客服',
			isLink: '',
			isHide: true,
			isKeepAlive: true,
			isAffix: true,
			isIframe: false,
			isHideNest: true,
			roles: ['admin', 'common'],
			icon: '',
		}
	}
	,{
		path: '/vip/chat', // 这个页面是付费客服
		name: 'VipChat',
		component: () => import('/@/views/chat/message/customer/index.vue'),
		meta: {
			title: '客服',
			isLink: '',
			isHide: true,
			isKeepAlive: true,
			isAffix: true,
			isIframe: false,
			isHideNest: true,
			roles: ['admin', 'common'],
			icon: '',
		}
	}

	/**
	 * 提示：写在这里的为全屏界面，不建议写在这里
	 * 请写在 `dynamicRoutes` 路由数组中
	 */
];
